package com.xxgc.wujiaoservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import org.dromara.autotable.annotation.ColumnComment;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;
import org.dromara.mpe.autotable.annotation.ColumnId;
import org.dromara.mpe.autotable.annotation.Table;
import org.dromara.mpe.processer.annotation.AutoDefine;
import org.dromara.mpe.processer.annotation.AutoMapper;
import org.dromara.mpe.processer.annotation.AutoRepository;

/**
 * 礼物表
 */
@AutoDefine // 新增
@AutoMapper // 新增
@AutoRepository // 新增
@Data
@Table(value = "zde_gift", comment = "礼物表")
public class GiftEntity {
    @ColumnComment("id")
    @ColumnId(mode = IdType.AUTO, comment = "id主键", type = MysqlTypeConstant.BIGINT, length = 32)
    private String id;

    @ColumnComment("礼物名称")
    private String name;

    @ColumnComment("礼物价值")
    private Integer money;

    @ColumnComment("礼物图片")
    private String img;

    @ColumnComment("礼物动图")
    private String imgRun;

    @ColumnComment("帧数")
    private Integer frameCount;

    @ColumnComment("循环一次的时间")
    private Double duration;

    @ColumnComment("宽")
    private Integer width;

    @ColumnComment("高")
    private Integer height;

    @ColumnComment("是否是gif")
    private Boolean isGif;
}
